package edu.hubu.shop9.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import edu.hubu.shop9.entity.Department;
import edu.hubu.shop9.mapper.DepartmentMapper;
import edu.hubu.shop9.service.IDepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author waxijiang
 * @since 2021-07-26
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements IDepartmentService {
    @Autowired
    DepartmentMapper departmentMapper;

    @Override
    public IPage<Department> selectByQuery(QueryWrapper<Department> queryWrapper, Page<Department> page) {
        return departmentMapper.selectPage(page, queryWrapper);
    }
}
